package com.pgeg.registry;

import com.pgeg.entity.FutaCowEntity;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricDefaultAttributeRegistry;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.attribute.DefaultAttributeContainer;

import static com.pgeg.listener.EntityListener.*;

public class EntityRegistry {

    public static void registerEntity() {
        FutaCowEntity.spawnFutaCow();
        initEntityAttribute(FUTA_COW, FutaCowEntity.createCowAttributes());
    }

    private static void initEntityAttribute(EntityType type, DefaultAttributeContainer.Builder builder) {
        FabricDefaultAttributeRegistry.register(type, builder);
    }

}
